import request from '@/utils/request'

// 查询泄漏点信息列表
export function listLeakPoint(query) {
  return request({
    url: '/basic/leakPoint/list',
    method: 'get',
    params: query
  })
}

// 查询泄漏点信息详细
export function getLeakPoint(id) {
  return request({
    url: '/basic/leakPoint/' + id,
    method: 'get'
  })
}

// 新增泄漏点信息
export function addLeakPoint(data) {
  return request({
    url: '/basic/leakPoint',
    method: 'post',
    data: data
  })
}

// 修改泄漏点信息
export function updateLeakPoint(data) {
  return request({
    url: '/basic/leakPoint',
    method: 'put',
    data: data
  })
}

// 删除泄漏点信息
export function delLeakPoint(id) {
  return request({
    url: '/basic/leakPoint/' + id,
    method: 'delete'
  })
}
